package com.lkd.http.controller;


import com.lkd.service.VmPolicyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 */
@RestController
public class VmPolicyController {
    @Autowired
    private VmPolicyService vmPolicyService;

    /**
     * 根据商品id查看对应折扣信息
     * @param skuId
     */
    @PostMapping("/discount")
    public Integer discount(Long skuId){
      return vmPolicyService.getDiscount(skuId);
    }
}
